SftTree/OCX 7.0

SftTree.ColHeaderEnabled Property

Softel vdm, Inc.

Defines whether the specified column header is enabled.

Deprecated - Provided for compatibility with earlier versions only - Use Header.Enabled instead

Syntax       

Get

VB.NET

Enabled = object.get_ColHeaderEnabled(ByVal ColIndex As Short)  As Boolean

VB

Enabled = object.ColHeaderEnabled(ByVal ColIndex As Integer)  As Boolean

C#.NET

bool Enabled = object.get_ColHeaderEnabled(short ColIndex);

VC++

VARIANT_BOOL Enabled = object->ColHeaderEnabled[short ColIndex];
VARIANT_BOOL Enabled = object->GetColHeaderEnabled(short ColIndex);

C

HRESULT object->get_ColHeaderEnabled(short ColIndex, VARIANT_BOOL* Enabled);

Delphi

Enabled := object.ColHeaderEnabled[ColIndex : Smallint]   : WordBool;

Put

VB.NET

object.set_ColHeaderEnabled(ByVal ColIndex As Short, ByVal Enabled As Boolean)

VB

object.ColHeaderEnabled(ByVal ColIndex As Integer) = Enabled  As Boolean

C#.NET

void object.set_ColHeaderEnabled(short ColIndex, bool Enabled);

VC++

VARIANT_BOOL object->ColHeaderEnabled[short ColIndex] = Enabled;
void object->PutColHeaderEnabled(short ColIndex, VARIANT_BOOL Enabled);

C

HRESULT object->put_ColHeaderEnabled(short ColIndex, VARIANT_BOOL Enabled);

Delphi

object.ColHeaderEnabled[ColIndex : Smallint] := Enabled   : WordBool;

object

A SftTree object.

ColIndex

The zero-based column number.

Enabled

Defines whether the specified column header is enabled.

Boolean

Description

True

The column header is enabled.

False

The column header is disabled.

Comments

Deprecated - Provided for compatibility with earlier versions only - Use Header.Enabled instead

The ColHeaderEnabled property defines whether the specified column header is enabled.

A disabled column header is drawn using the Headers.GrayedColor property value as text color and column header graphics (see Header.Image property) are drawn in a "grayed" fashion, if based on a bitmap. Other image types, like color samples, .NET image objects, etc., must be explicitly replaced with a grayed image if a different rendering of a disabled image is desired.

A disabled column header button does not generate ItemClick or ItemDblClick events.

See Also  SftTree Object | Object Hierarchy


Feedback / comments / error reports for this topic
© 2015 - Softel vdm, Inc. - www.softelvdm.com